package com.yuelao.event;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;

/**
 * @author FLY
 * @version v1.0
 * @project yuelao-server
 * @date 2017/9/11 18:20
 * @修改记录 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 */
@Slf4j
@Data
public class Event extends ApplicationEvent {
    private String msg;
    public Event(Object source, String msg) {
        super(source);
        this.msg = msg;
        log.info("发布######{}######事件", msg);
    }
}
